<!DOCTYPE html>
<html>
    <head>
        <title>合并对象 - mergeObject的实现</title>
        <script src="../../src/object/mergeObject.js"></script>
    </head>
    <body>
        <script>
            const obj1 = {
                name: '张三',
                age: 18,
                address: {
                    city: '北京'
                }
            }
            const obj2 = {
                name: '李四',
                address: {
                    city: '上海'
                },
                phone: '123456789'
            }

            console.log(mergeObject(obj1, obj2))
        </script>
    </body>
</html>